package zust.itee.se;


import org.apache.log4j.Logger;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    private  static Logger logger=Logger.getLogger(App.class);
    public static void main( String[] args )
    {
        ApplicationContext ac=new ClassPathXmlApplicationContext("classpath:beans.xml");
//        Group group=(Group)ac.getBean("group");
        User user=(User)ac.getBean("user");
        logger.debug(user);
//        System.out.println(user);
//        System.out.println(group.getName());

    }
}
